package com.organize.entities;

import com.autumn.domain.entities.auditing.SoftDelete;
import com.autumn.mybatis.mapper.annotation.ColumnDocument;
import com.autumn.mybatis.mapper.annotation.ColumnOrder;
import com.autumn.mybatis.mapper.annotation.TableDocument;
import com.autumn.zero.common.library.entities.AbstractTreeEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 部门
 * <p>
 * </p>
 *
 * @description TODO
 * @author: 老码农
 * @create: 2020-10-17 14:19
 **/
@Getter
@Setter
@Table(name = "org_department")
@TableDocument(value = "部门", group = "组织", groupOrder = 110)
public class Department extends AbstractTreeEntity implements SoftDelete {

    private static final long serialVersionUID = 7074913897080977441L;



    /**
     * 是否删除
     */
    @ColumnOrder(10200)
    @Column(name = COLUMN_IS_DELETE, nullable = false)
    @ColumnDocument("是否删除")
    private boolean delete;
}
